Optimal. Leaf size=86 \[ \frac {d (2 d-e x) \sqrt {d^2-e^2 x^2}}{2 e^3}-\frac {\left (d^2-e^2 x^2\right )^{3/2}}{3 e^3}+\frac {d^3 \tan ^{-1}\left (\frac {e x}{\sqrt {d^2-e^2 x^2}}\right )}{2 e^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 86, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 6, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.222, Rules used = {1653, 12, 799,
794, 223, 209} \begin {gather*} \frac {d^3 \text {ArcTan}\left (\frac {e x}{\sqrt {d^2-e^2 x^2}}\right )}{2 e^3}+\frac {d (2 d-e x) \sqrt {d^2-e^2 x^2}}{2 e^3}-\frac {\left (d^2-e^2 x^2\right )^{3/2}}{3 e^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 209
Rule 223
Rule 794
Rule 799
Rule 1653
Rubi steps
\begin {align*} \int \frac {x^2 \sqrt {d^2-e^2 x^2}}{d+e x} \, dx &=-\frac {\left (d^2-e^2 x^2\right )^{3/2}}{3 e^3}-\frac {\int \frac {3 d e^3 x \sqrt {d^2-e^2 x^2}}{d+e x} \, dx}{3 e^4}\\ &=-\frac {\left (d^2-e^2 x^2\right )^{3/2}}{3 e^3}-\frac {d \int \frac {x \sqrt {d^2-e^2 x^2}}{d+e x} \, dx}{e}\\ &=-\frac {\left (d^2-e^2 x^2\right )^{3/2}}{3 e^3}-\frac {\int \frac {x \left (d^2 e-d e^2 x\right )}{\sqrt {d^2-e^2 x^2}} \, dx}{e^2}\\ &=\frac {d (2 d-e x) \sqrt {d^2-e^2 x^2}}{2 e^3}-\frac {\left (d^2-e^2 x^2\right )^{3/2}}{3 e^3}+\frac {d^3 \int \frac {1}{\sqrt {d^2-e^2 x^2}} \, dx}{2 e^2}\\ &=\frac {d (2 d-e x) \sqrt {d^2-e^2 x^2}}{2 e^3}-\frac {\left (d^2-e^2 x^2\right )^{3/2}}{3 e^3}+\frac {d^3 \text {Subst}\left (\int \frac {1}{1+e^2 x^2} \, dx,x,\frac {x}{\sqrt {d^2-e^2 x^2}}\right )}{2 e^2}\\ &=\frac {d (2 d-e x) \sqrt {d^2-e^2 x^2}}{2 e^3}-\frac {\left (d^2-e^2 x^2\right )^{3/2}}{3 e^3}+\frac {d^3 \tan ^{-1}\left (\frac {e x}{\sqrt {d^2-e^2 x^2}}\right )}{2 e^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.13, size = 89, normalized size = 1.03 \begin {gather*} \frac {e \sqrt {d^2-e^2 x^2} \left (4 d^2-3 d e x+2 e^2 x^2\right )+3 d^3 \sqrt {-e^2} \log \left (-\sqrt {-e^2} x+\sqrt {d^2-e^2 x^2}\right )}{6 e^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(156\) vs.
\(2(74)=148\).
time = 0.07, size = 157, normalized size = 1.83
method | result | size |
risch | \(\frac {\left (2 e^{2} x^{2}-3 d e x +4 d^{2}\right ) \sqrt {-e^{2} x^{2}+d^{2}}}{6 e^{3}}+\frac {d^{3} \arctan \left (\frac {\sqrt {e^{2}}\, x}{\sqrt {-e^{2} x^{2}+d^{2}}}\right )}{2 e^{2} \sqrt {e^{2}}}\) | \(75\) |
default | \(-\frac {\left (-e^{2} x^{2}+d^{2}\right )^{\frac {3}{2}}}{3 e^{3}}-\frac {d \left (\frac {x \sqrt {-e^{2} x^{2}+d^{2}}}{2}+\frac {d^{2} \arctan \left (\frac {\sqrt {e^{2}}\, x}{\sqrt {-e^{2} x^{2}+d^{2}}}\right )}{2 \sqrt {e^{2}}}\right )}{e^{2}}+\frac {d^{2} \left (\sqrt {-\left (x +\frac {d}{e}\right )^{2} e^{2}+2 d e \left (x +\frac {d}{e}\right )}+\frac {d e \arctan \left (\frac {\sqrt {e^{2}}\, x}{\sqrt {-\left (x +\frac {d}{e}\right )^{2} e^{2}+2 d e \left (x +\frac {d}{e}\right )}}\right )}{\sqrt {e^{2}}}\right )}{e^{3}}\) | \(157\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.47, size = 71, normalized size = 0.83 \begin {gather*} \frac {1}{2} \, d^{3} \arcsin \left (\frac {x e}{d}\right ) e^{\left (-3\right )} - \frac {1}{2} \, \sqrt {-x^{2} e^{2} + d^{2}} d x e^{\left (-2\right )} + \sqrt {-x^{2} e^{2} + d^{2}} d^{2} e^{\left (-3\right )} - \frac {1}{3} \, {\left (-x^{2} e^{2} + d^{2}\right )}^{\frac {3}{2}} e^{\left (-3\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 5.37, size = 69, normalized size = 0.80 \begin {gather*} -\frac {1}{6} \, {\left (6 \, d^{3} \arctan \left (-\frac {{\left (d - \sqrt {-x^{2} e^{2} + d^{2}}\right )} e^{\left (-1\right )}}{x}\right ) - {\left (2 \, x^{2} e^{2} - 3 \, d x e + 4 \, d^{2}\right )} \sqrt {-x^{2} e^{2} + d^{2}}\right )} e^{\left (-3\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x^{2} \sqrt {- \left (- d + e x\right ) \left (d + e x\right )}}{d + e x}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.37, size = 54, normalized size = 0.63 \begin {gather*} \frac {1}{2} \, d^{3} \arcsin \left (\frac {x e}{d}\right ) e^{\left (-3\right )} \mathrm {sgn}\left (d\right ) + \frac {1}{6} \, \sqrt {-x^{2} e^{2} + d^{2}} {\left (4 \, d^{2} e^{\left (-3\right )} + {\left (2 \, x e^{\left (-1\right )} - 3 \, d e^{\left (-2\right )}\right )} x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {x^2\,\sqrt {d^2-e^2\,x^2}}{d+e\,x} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________